package com.winshare.saleAssistant.domain.dto.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@ApiModel
public class StatisticReq1DTO {

    @NotBlank(message = "开始时间不能为空")
    @ApiModelProperty(value = "开始时间,格式为：yyyy-dd-mm")
    @Pattern(regexp = "(\\d{4}|\\d{2})-((1[0-2])|(0?[1-9]))-(([12][0-9])|(3[01])|(0?[1-9]))",message = "格式为：yyyy-dd-mm")
    private String startDate;

    @NotBlank(message = "结束时间不能为空")
    @ApiModelProperty(value = "结束时间,格式为：yyyy-dd-mm")
    @Pattern(regexp = "(\\d{4}|\\d{2})-((1[0-2])|(0?[1-9]))-(([12][0-9])|(3[01])|(0?[1-9]))",message = "格式为：yyyy-dd-mm")
    private String endDate;

    public StatisticReq1DTO() {
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

}
